<?php

namespace maotool\src\test;

use maotool\core\Config;
use maotool\match\AntPathMatcher;
use maotool\match\UrlMatcher;
use PHPUnit\Framework\TestCase;

class AntPathMatcherTest extends TestCase
{

    public function testIsPattern()
    {
        $url = new UrlMatcher();
        $url->addPattern('id', '[0-9]+');
        $dictionary = $url->parse('users/{id}', 'users/123');
        echo json_encode($dictionary);die;
        $this->assertTrue(true);
    }

    public function testDemo1()
    {
        $this->assertTrue(true);
    }

}